﻿
@{
    ViewData["Title"] = "数据源首页";
    Layout = "~/Areas/Admin/Views/Shared/_Layout.cshtml";
}
<script type="text/javascript">
    $(function () {
        $('.e-content').height($(window).height() - 160);

        $('#btn_Search').click(function () {
            $("#Grid").ejGrid("refreshContent")
        });
    });

    //请求数据的参数
    function actionBeginClick(args) {

    }
    //新增
    function btn_add() {


    }
    //编辑
    function btn_edit() {


    }
    //删除
    function btn_delete() {


    }

</script>



<div class="titlePanel">
    <div class="title-search">
        <table>
            <tr>
                <td style="padding-left: 2px;">
                    <input id="txt_Keyword" type="text" class="form-control" placeholder="请输入查找关键字" style="width: 200px;" />
                </td>
                <td style="padding-left: 5px;">
                    <a id="btn_Search" class="btn btn-primary"><i class="fa fa-search"></i>&nbsp;查询</a>
                </td>
            </tr>
        </table>
    </div>
    <div class="toolbar">
        <div class="btn-group">
            <a id="lr-replace" class="btn btn-default" onclick="reload();"><i class="fa fa-refresh"></i>&nbsp;刷新</a>
            <a id="lr-add" class="btn btn-default" onclick="btn_add()"><i class="fa fa-plus"></i>&nbsp;新增</a>
            <a id="lr-edit" class="btn btn-default" onclick="btn_edit()"><i class="fa fa-pencil-square-o"></i>&nbsp;编辑</a>
            <a id="lr-delete" class="btn btn-default" onclick="btn_delete()"><i class="fa fa-trash-o"></i>&nbsp;删除</a>
        </div>
    </div>
</div>
<div class="gridPanel">
    <div class="content-wrapper">
        <ej-grid id="Grid" allow-paging="true" action-begin="actionBeginClick">
            <e-datamanager url="/admin/DataSource/GetPageDataList" adaptor="UrlAdaptor" cross-domain="true"></e-datamanager>
            <e-page-settings page-count="5" page-size="5"></e-page-settings>
            <e-columns>
                <e-column field="dataSourceId" header-text="数据源编号" text-Align="Right" width="100"></e-column>
                <e-column field="dataSourceName" header-text="数据源名称" width="150"></e-column>
                <e-column field="dataSourceType" header-text="数据源类型" width="130" text-Align="Right"></e-column>
                <e-column field="dataSourceAddress" header-text="数据源地址" width="120"></e-column>
                <e-column field="remark" header-text="备注" width="300"></e-column>
            </e-columns>
        </ej-grid>
    </div>
</div>




